Repository navigation
fix(api): cherry-pick model-type migration script to hotfix/1.14.1-fix.3 - #36704
Merged
Merged
Conversation
Contributor
Pyrefly Diffbase → PR--- /tmp/pyrefly_base.txt 2026-05-27 03:46:49.205569318 +0000
+++ /tmp/pyrefly_pr.txt 2026-05-27 03:46:37.028447631 +0000
@@ -600,6 +600,14 @@
--> tasks/regenerate_summary_index_task.py:277:60
ERROR Class member `AsyncWorkflowCFSPlanScheduler.plan` overrides parent class `CFSPlanScheduler` in an inconsistent manner [bad-override-mutable-attribute]
--> tasks/workflow_cfs_scheduler/cfs_scheduler.py:19:5
+ERROR Object of class `FromClause` has no attribute `metadata` [missing-attribute]
+ --> tests/helpers/legacy_model_type_migration.py:64:16
+ERROR Object of class `FromClause` has no attribute `metadata` [missing-attribute]
+ --> tests/helpers/legacy_model_type_migration.py:80:16
+ERROR Argument `dict[_KeyType, Any]` is not assignable to parameter `object` with type `dict[str, object]` in function `list.append` [bad-argument-type]
+ --> tests/helpers/legacy_model_type_migration.py:138:23
+ERROR Object of class `FromClause` has no attribute `insert` [missing-attribute]
+ --> tests/helpers/legacy_model_type_migration.py:182:13
ERROR Argument `_GP` is not assignable to parameter `graph_init_params` with type `GraphInitParams` in function `core.workflow.nodes.datasource.datasource_node.DatasourceNode.__init__` [bad-argument-type]
--> tests/integration_tests/core/workflow/nodes/datasource/test_datasource_node_integration.py:85:27
ERROR Argument `_GS` is not assignable to parameter `graph_runtime_state` with type `GraphRuntimeState` in function `core.workflow.nodes.datasource.datasource_node.DatasourceNode.__init__` [bad-argument-type]
@@ -1812,6 +1820,30 @@
--> tests/unit_tests/commands/test_clean_expired_messages.py:94:9
ERROR Expected a callable, got `None` [not-callable]
--> tests/unit_tests/commands/test_clean_expired_messages.py:176:9
+ERROR Generator function should return `Generator` [bad-return]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:36:38
+ERROR Object of class `FromClause` has no attribute `insert` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:204:13
+ERROR Object of class `object` has no attribute `callback` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:383:5
+ERROR Object of class `object` has no attribute `callback` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:444:5
+ERROR Object of class `TextIOBase` has no attribute `name` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:457:17
+ERROR Class `object` has no class attribute `__table__` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:541:48
+ERROR Class `object` has no class attribute `__table__` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:620:48
+ERROR Class `object` has no class attribute `__table__` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:723:48
+ERROR Class `object` has no class attribute `__table__` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:801:48
+ERROR Class `object` has no class attribute `__table__` [missing-attribute]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:856:42
+ERROR Argument `object` is not assignable to parameter `orig` with type `BaseException` in function `sqlalchemy.exc.DBAPIError.__init__` [bad-argument-type]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1226:44
+ERROR Argument `SimpleNamespace` is not assignable to parameter `orig` with type `BaseException` in function `sqlalchemy.exc.DBAPIError.__init__` [bad-argument-type]
+ --> tests/unit_tests/commands/test_legacy_model_type_migration.py:1250:57
ERROR Object of class `ModuleType` has no attribute `upgrade` [missing-attribute]
--> tests/unit_tests/commands/test_upgrade_db.py:15:5
ERROR Expected a callable, got `None` [not-callable]
|
Contributor
Pyrefly Type Coverage
|
QuantumGhost
approved these changes
May 27, 2026
wylswz
approved these changes
May 27, 2026
6 tasks done
This was referenced Jul 3, 2026
Closed
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cherry-pick of #36520 onto
hotfix/1.14.1-fix.3.Introduces an online data migration CLI command to canonicalize legacy
model_typevalues in provider-related tables:text-generationllmembeddingstext-embeddingrerankingrerankAffected tables:
provider_models,tenant_default_models,provider_model_settings,load_balancing_model_configs,provider_model_credentials.Usage:
Conflict resolution
api/pyproject.tomlhad a version conflict between branches. Kepthotfix/1.14.1-fix.3pins (litellm>=1.83.7,pyarrow>=18.0.0).Test plan
pytest api/tests/unit_tests/commands/test_legacy_model_type_migration.py— 31 passed